<template>
  <div class="container">
    <div class="content">
      <topic :value="dataList"></topic>
    </div>
  </div>
</template>

<style lang="less">
.container {
  background: #fff;
  .content {
    max-width: 1210px;
    margin: 0 auto;
  }
}
</style>

<script>
// api
import { getProjectList } from "@/api/miva";
import topic from "@/components/topic";
export default {
  components: { topic },
  data() {
    return {
      show: false,
      dataList: []
    };
  },
  created() {
    this.$store.commit("SETTING_HEADER_ACTIVE", 2);
  },
  async mounted() {
    await this.getProjectList();
  },
  methods: {
    async getProjectList() {
      const res = await getProjectList({ type: 5 });
      console.log(res);
      this.dataList = res.data;
    },
    changeHandler(data) {
      this.dataList = data;
    }
  }
};
</script>
